
pkgname=libusb
pkgver=1.0.22
pkgrel=1
pkgdesc="Library that provides generic access to USB device"
arch=('x86_64')
url="http://libusb.info"
license=('LGPL')
depends=('glibc' 'systemd')
options=('!libtool')
provides=('libusbx')
replaces=('libusbx')
conflicts=('libusbx')
source=("https://github.com/libusb/libusb/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.bz2")
md5sums=('466267889daead47674df933cea9cacb')

build() {
  cd ${pkgname}-${pkgver}
  
  ./configure --prefix=/usr --disable-static
  make -j1
}

check() {
  cd ${pkgname}-${pkgver}
  
  make check
}

package () {
  cd ${pkgname}-${pkgver}
  
  make DESTDIR=${pkgdir} install
}
